package com.example.dao;

import com.example.domain.Users;
import org.apache.ibatis.annotations.*;

import java.util.List;


public interface UserDao {
    List<Users> searchUsersByUsername(String username);


    Users getUserByUsernamePasswordAndRole(@Param("username") String username, @Param("password") String password, @Param("role") Integer role);


    void addUser(Users user);


    void updateUser(Users user);

    void deleteUser(Integer id);

    List<Users> getAllUsers();


    Users getUsersByUserId(Integer id);
}
